<?php /* Smarty version Smarty-3.1.10, created on 2013-08-04 10:57:36
         compiled from "G:\web\htdocs\gothpunks\m_admin\templates\libs\act\cus_config.htm" */ ?>
<?php /*%%SmartyHeaderCode:917551fe33a0a52f07-05210034%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5a423e7827d750fc226ab63f528730a1ef9fdd1e' => 
    array (
      0 => 'G:\\web\\htdocs\\gothpunks\\m_admin\\templates\\libs\\act\\cus_config.htm',
      1 => 1375015083,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '917551fe33a0a52f07-05210034',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'conf' => 0,
    'list' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.10',
  'unifunc' => 'content_51fe33a0ac3580_20148768',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51fe33a0ac3580_20148768')) {function content_51fe33a0ac3580_20148768($_smarty_tpl) {?>
<article class="module width_3_quarter" id="cus_config">
  <header>
    <h3 class="tabs_involved ">自定义变量</h3>
    <ul class="tabs">
      <li><a class="add_config" href="cus_config_add">新增</a></li>
    </ul>
  </header>
  <div class="tab_container">
    <div id="tab1" class="tab_content">
      <table class="tablesorter" cellspacing="0">
        <thead>
          <tr>
           <th width="120px">名称</th>
           <th width="80px">类型</th>
            <th width="100px">调用代码</th>
            <th >内容</th>
            <th width="140px">操作</th>
          </tr>
        </thead>
        <tbody>
       <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['conf']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value){
$_smarty_tpl->tpl_vars['list']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['list']->key;
?>
       <?php if ($_smarty_tpl->tpl_vars['list']->value['type']==2){?>
       <tr class="c_tr list list_<?php echo $_smarty_tpl->tpl_vars['list']->value['c_id'];?>
">
         <td ><input type="text" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['name'];?>
" name="name"/></td>
         <td ><input type="text" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['value_type'];?>
"  name="value_type"/></td>
         <td ><input type="text" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['code'];?>
" name="code" /></td>
          <td ><textarea name="value" style="height:40px"><?php echo $_smarty_tpl->tpl_vars['list']->value['value'];?>
</textarea></td>
          <td>
           <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['c_id'];?>
" name="c_id" />
            <input type="button"  class="alt_btn" value="删除" onclick="AD.configDel(<?php echo $_smarty_tpl->tpl_vars['list']->value['c_id'];?>
)"/>
            <input type="button"  class="alt_btn" value="保存" onclick="AD.configEdit('.list_<?php echo $_smarty_tpl->tpl_vars['list']->value['c_id'];?>
')"/>
            </td>
        </tr>
        <?php }?>
       <?php } ?>
       </tbody>
       
      </table>
    </div>
  </div>
  <!-- end of .tab_container --> 
  
</article>


<?php }} ?>